<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<script>
		// 只要有一个数是偶数就返回true
		var arr = [1,3,5,6,7];
		Array.prototype.mySome = function(handler){
			var flag = false;
			for(var i=0;i<this.length;i++){
				var item = this[i];
				var result = handler(item);
				if(result){
					flag = true;
					break;
				}else{
					continue;
				}
			}
			return flag;
		}

		var result = arr.mySome(function(item){
			return item%2 == 0;
		})
		console.log(result);
		
	</script>
</body>
</html>